# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-whiskermenu-plugin
pkgver=2.7.1
pkgrel=0
pkgdesc="Alternate application launcher for Xfce"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-whiskermenu-plugin"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
makedepends="
	cmake
	exo-dev
	garcon-dev
	libxfce4ui-dev
	libxfce4util-dev
	samurai
	xfce4-panel-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-whiskermenu-plugin/${pkgver%.*}/xfce4-whiskermenu-plugin-$pkgver.tar.bz2"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
40a1124ad8bcb51a21cab20cde8079fdce31d57ade3da787235554391e5eb9ec747c646f46f84f9ecadacf124446bf80a7aec8138415b68ed064e02371aa7c0a  xfce4-whiskermenu-plugin-2.7.1.tar.bz2
"
